﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VMCCryptoLib.SymmetricEncryption;
using VMCCryptoLib.HashEncryption;

namespace VMCCryptoLibConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            string inFile = @"C:\lala.txt";
            string outFile =@"C:\lulu.txt";
            string decryptedFile =@"C:\nana.txt";

            string data = "Hello World";

            string passwordSec = "113";
            string password ="8546747";

            if (RijndaelEcryption.EncryptFile(inFile, outFile, password) == true)
            {
                Console.WriteLine("Success");
            }
            else { Console.WriteLine("Failed"); }

            if (RijndaelEcryption.DecryptFile(outFile, decryptedFile, password) == true)
            {
                Console.WriteLine("Decrypted File");
            }
            else
            {
                Console.WriteLine("Decrypt file is failed");
            }
            string enr = RijndaelEcryption.EncryptString(data,passwordSec);
            Console.WriteLine(enr);
            Console.WriteLine(RijndaelEcryption.DecryptString(enr,passwordSec));

            string cos = MD5Hash.HashFile(inFile);
            Console.WriteLine(cos);

            Console.ReadKey();
        }
    }
}
